<?php require 'gauche.tpl.php';?>
    <div id="content">
        <div>
            <h2>Creation d'un événement personnalisé</h2>
            <form action="" method="post">
                <fieldset>
                    <legend>titre</legend>
                    <label for="frm_titre">titre événement</label>
                    <input type="text" id="frm_titre" name="frm_titre" size="70" value="<?php echo $detail['titre']?>"/>
                </fieldset>
                <fieldset>
                    <legend>visibilité</legend>
                    <input type="radio" name="frm_visibilite" id="frm_visibilite_clan" value="1" <?php if ($detail['visibilite'] === '1') {?>checked="checked"<?php }?>/>
                    <label for="frm_visibilite_clan">clan</label>
                    <input type="radio" name="frm_visibilite" id="frm_visibilite_open" value="2"  <?php if ($detail['visibilite'] === '2') {?>checked="checked"<?php }?>/>
                    <label for="frm_visibilite_open">ouvert</label>
                    <input type="radio" name="frm_visibilite" id="frm_visibilite_restreint" value="3"  <?php if ($detail['visibilite'] === '3') {?>checked="checked"<?php }?>/>
                    <label for="frm_visibilite_restreint">restreint</label>
                </fieldset>
                <fieldset>
                    <legend>clans autorisés</legend>
                    <select id="frm_list_clan" name="frm_list_clan[]"  size="10" multiple="multiple">
                    <?php foreach($clans as $clan) {?>
                        <option value="<?php echo $clan['clan_id']?>"><?php echo $clan['nom_clan']?></option>
                        <?php } ?>
                    </select>
                </fieldset>
                <fieldset>
                    <legend>tanks autorisés (tiers)</legend>
                        <label for="frm_limite">Limite</label>
                        <input id="frm_limite" name="frm_limite" size="3" type="text" value="<?php echo $detail['limite']?>"/>
                        <label for="frm_heavy">Lourds</label>
                        <input id="frm_heavy" name="frm_heavy" size="3" type="text" value="<?php echo $detail['heavy']?>"/>
                        <label for="frm_med">Mediums</label>
                        <input id="frm_med" name="frm_med" size="3" type="text" value="<?php echo $detail['medium']?>"/>
                        <label for="frm_light">Légers</label>
                        <input id="frm_light" name="frm_light" size="3" type="text" value="<?php echo $detail['light']?>"/>
                        <label for="frm_td">TD</label>
                        <input id="frm_td" name="frm_td" size="3" type="text" value="<?php echo $detail['td']?>"/>
                        <label for="frm_spg">Artilleries</label>
                        <input id="frm_spg" name="frm_spg" size="3" type="text" value="<?php echo $detail['spg']?>"/>
                </fieldset>
                <div class="boutons">
                    <input type="submit" value="Enregistrer" />
                </div>
            </form>
		</div>
	</div>